﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SPPropertyBagViewer.aspx.cs" Inherits="SPPropertyBagViewer.Layouts.SPPropertyBagViewer.SPPropertyBagViewer" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link href="css/jquery-ui.min.css" rel="stylesheet" />
    <link href="css/ui.dropdownchecklist.themeroller.css" rel="stylesheet" />
    <script src="scripts/jquery-2.2.1.min.js"></script>
    <script src="scripts/jquery-ui.min.js"></script>
    <script src="scripts/ui.dropdownchecklist-1.5-min.js"></script>
    <script src="scripts/main.js"></script>
    <link href="css/main.css" rel="stylesheet" />
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <asp:Panel runat="server">
        <div class="rightTextAlign">
            <asp:LinkButton runat="server" ID="btnReturn" Text="Go back" />
        </div>
        <asp:Panel runat="server" ID="listPBConfig" Visible="False">
            <fieldset class="paramsVisible" id="paramsFieldset">
                <legend class="params">Settings for list items</legend>
                <div class="paramsContent">
                    <asp:CheckBox runat="server" ID="cbxEnableViewForItems" Text="Enable property bag viewer for list items for users with next permissions: "></asp:CheckBox>
                    <asp:ListBox ID="lbPermissions" runat="server" SelectionMode="Multiple"></asp:ListBox>
                    <asp:Button runat="server" ID="btnApplyListSettings" OnClick="btnApplyListSettings_OnClick" Text="Apply" />
                </div>
            </fieldset>
        </asp:Panel>
        <asp:PlaceHolder runat="server" ID="ErrorMessage" Visible="False">
            <div class="ms-error">
                <asp:Literal runat="server" ID="ErrorMessageText"></asp:Literal>
            </div>
        </asp:PlaceHolder>
        
    </asp:Panel>

    <asp:Panel runat="server" ID="MainInfo">
        <div class="tipsTable">
            Quick filtering:
            <input type='search' id='filter' />
        </div>
        <div>
            <asp:GridView runat="server" EnableViewState="False"
                ID="gvPropertyBagDatails"
                AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" CssClass="detailsTable">
                <AlternatingRowStyle BackColor="White"></AlternatingRowStyle>
                <Columns>
                    <asp:BoundField DataField="key" HeaderText="Property name" />
                    <asp:BoundField DataField="value" HeaderText="Value" />
                </Columns>
                <EditRowStyle BackColor="#2461BF"></EditRowStyle>

                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"></FooterStyle>

                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White"></HeaderStyle>

                <PagerStyle HorizontalAlign="Center" BackColor="#2461BF" ForeColor="White"></PagerStyle>

                <RowStyle BackColor="#EFF3FB"></RowStyle>

                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333"></SelectedRowStyle>

                <SortedAscendingCellStyle BackColor="#F5F7FB"></SortedAscendingCellStyle>

                <SortedAscendingHeaderStyle BackColor="#6D95E1"></SortedAscendingHeaderStyle>

                <SortedDescendingCellStyle BackColor="#E9EBEF"></SortedDescendingCellStyle>

                <SortedDescendingHeaderStyle BackColor="#4870BE"></SortedDescendingHeaderStyle>
            </asp:GridView>
        </div>
    </asp:Panel>

</asp:Content>


<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    Property Bag Viewer > <%= PageTitleSufix %>
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
    Property Bag Viewer > <%= PageTitleSufix %>
</asp:Content>


